home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _0CCEF8026D0B40158F0F8FD4732C4111 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.1 KB  |  46 lines

  1. // template file for newyork directory
  2.  
  3. #include "../common/header.ds"
  4.  
  5. output "p:/base/ds/tsr1"
  6.  
  7.  
  8. local entity topstairguy1 // the hostage at the top of the stairs
  9. local entity topstairbad1 // 
  10. local entity host_count // the hostage counter for how many hostage events the player has seen
  11.  
  12.  
  13.  
  14. topstairguy1 = find entity with targetname "topstairguy1"
  15. topstairbad1 = find entity with targetname "topstairbad1"
  16. host_count = find entity with targetname "host_count"
  17.  
  18. on topstairbad1.health < 100 goto badstairs1
  19.  
  20.    animate entity topstairguy1 performing action STD_XFEARWAVE_N_N_N
  21.    play sound "speech/tsr1/npc/eb9-3.adp" for entity topstairguy1 at volume 0.9
  22.  
  23.    animate entity topstairbad1 performing action STD_XYELLATYOU_N_A_A
  24.    wait 1.0 seconds 
  25.    play sound "speech/tsr1/skn/bt9-4.adp" for entity topstairbad1 at volume 0.9
  26.  
  27.  
  28. label release
  29.  
  30.     animate entity topstairbad1 performing action SCRIPT_RELEASE
  31.     animate entity topstairguy1 performing action SCRIPT_RELEASE
  32.     exit    
  33.  
  34.  
  35. label badstairs1
  36.  
  37.   reset ai for entity topstairbad1 // lets this guy go
  38. goto release
  39.  
  40.  
  41.  
  42.    
  43.  
  44.  
  45.  
  46.